import React from 'react'
import { Table } from 'antd'
export default function Taable () {
  // 行列数据
  const columns = [
    {
      title: '序号',
      dataIndex: 'key',
      key: 'key'
    },
    {
      title: '就诊状态',
      dataIndex: 'state',
      key: 'state'
    },
    {
      title: '患者编号',
      dataIndex: 'personId',
      key: 'personId'
    },
    {
      title: '患者姓名',
      dataIndex: 'name',
      key: 'name'
    },
    {
      title: '性别',
      dataIndex: 'name',
      key: 'name'
    },
    {
      title: '年龄',
      dataIndex: 'age',
      key: 'age',
    },
    {
      title: '电话',
      dataIndex: 'age',
      key: 'age',
    },
    {
      title: '门诊类型',
      dataIndex: 'key',
      key: 'key',
    },
    {
      title: '科室',
      dataIndex: 'key',
      key: 'key',
    },
    {
      title: '挂号医生',
      dataIndex: 'key',
      key: 'key',
    },
    {
      title: '最近时间',
      dataIndex: 'key',
      key: 'key',
    }
  ]
  // 表格数据
  const data = [
    {
      key: '1',
      name: 'John Brown',
      state: '待接诊',
      personId: 100130,
      age: 32,
      address: 'New York No. 1 Lake Park',
      tags: ['nice', 'developer'],
    },
    {
      key: '2',
      name: 'Jim Green',
      state: '待接诊',
      personId: 100130,
      age: 42,
      address: 'London No. 1 Lake Park',
      tags: ['loser'],
    },
    {
      key: '3',
      name: 'Joe Black',
      state: '待接诊',
      personId: 100130,
      age: 32,
      address: 'Sidney No. 1 Lake Park',
      tags: ['cool', 'teacher'],
    },
  ]
  return (
    <div>
      <Table columns={columns} dataSource={data} />
    </div>
  )
}
